# __coding:utf-8__
from urllib.request import urlopen;
from urllib.request import urlretrieve
from bs4 import BeautifulSoup;

html = urlopen('http://www.t.hxqc.com/');
bsObj = BeautifulSoup(html, 'lxml');
result = bsObj.find_all('img',{'class':'lazy'});
for item in result:
    src = item['data-original'];
    name = src.split('/')[-1]
    urlretrieve(src,'./upload/'+name);
